print(' X | X | X ')
print('---+---+---')
print('   |   |   ')
print('---+---+---')
print(' O | O | O ')